]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Move close button above notification widget stack
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 4 Sep 2012 22:03:47 +0000 (19:03 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 4 Sep 2012 22:21:31 +0000 (19:21 -0300)
This allows us to click on the entire close button, not just the part
of it that's unobscured.

js/ui/messageTray.js

index 31fa470a30074c45d2cadb138722f80efe24cfa0..1f1593dcca06cbefd78bbe2e89f3fe537f01d4b5 100644 (file)
@@ -1204,7 +1204,6 @@ const SummaryItem = new Lang.Class({
             this.emit('done-displaying-content');
         }));
 
-        this.notificationStackWidget.add_actor(this._closeButton);
         this.notificationStackView = new St.ScrollView({ style_class: source.isChat ? '' : 'summary-notification-stack-scrollview',
                                                          vscrollbar_policy: source.isChat ? Gtk.PolicyType.NEVER : Gtk.PolicyType.AUTOMATIC,
                                                          hscrollbar_policy: Gtk.PolicyType.NEVER });
@@ -1213,6 +1212,7 @@ const SummaryItem = new Lang.Class({
                                                     vertical: true });
         this.notificationStackView.add_actor(this.notificationStack);
         this.notificationStackWidget.add_actor(this.notificationStackView);
+        this.notificationStackWidget.add_actor(this._closeButton);
         this._stackedNotifications = [];
 
         this._oldMaxScrollAdjustment = 0;